package work04;

public class Hw03_03 {
    public static void main(String [] args){
        String[] name = new String []{"柯旭海","宋自江","相淑雅","宋唐炜 ","任晓萱" ,
                "夏启田","王俊杰","徐翰毅","李余良" ,"袁斌斌", "周瑞俊", "王佐耀", "梁杰" ,"丁振铮" , "何升强"
        };
        int x = (int) (Math.random() * 16);
        System.out.print("全班同学：\n");
        for(int i=0;i<name.length;i++){
            System.out.println(name[i]);

        }
        System.out.println("被选中的是:\n"+name[x]);

    }
}

